package com.weijian.dal.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Schema(description = "订单页面VO")
public class OrderVO {
    @Schema(description = "订单id")
    private Long id;

    @Schema(description = "订单编号")
    private String number;

    @Schema(description = "总金额，单位为分")
    private Integer totalFee;

    @Schema(description = "支付类型，1、支付宝，2、微信，3、扣减余额")
    private Integer paymentType;

    @Schema(description = "用户")
    private String userName;

    @Schema(description = "用户手机号")
    private String phone;

    @Schema(description = "订单状态，订单状态，0、已下单，1、已支付，2、已配送 3、已取消，4、已完成")
    private Integer status;

    @Schema(description = "配送地址")
    private String address;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "下单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime consignTime;

    @Schema(description = "支付时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime payTime;

    @Schema(description = "交易完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @Schema(description = "交易关闭时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime closeTime;

    @Schema(description = "备注")
    private String remark;
}
